package com.jan.l1;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class TestLabel
    extends ApplicationWindow
{

  public TestLabel(Shell parentShell)
  {
    super(parentShell);
    // TODO Auto-generated constructor stub
  }
  @Override
  protected Control createContents(Composite parent)
  {
//    Label l1=new Label(parent,SWT.CENTER);
//    l1.setText("SWT.SHADOW_OUT");
//    l1.setBounds(30,60,110,15);
//    Label l2=new Label(parent,SWT.SHADOW_IN);
//    l2.setText("SWT.SHADOW_IN");
//    l2.setBounds(30,90,110,15);
//    parent.pack();
//    Button push = new Button(parent, SWT.PUSH);
//    Button push = new Button(parent, SWT.FLAT);
//    push.setText("确定");
//    Button arrow = new Button(parent, SWT.ARROW | SWT.RIGHT);
//    Button toggle=new Button(parent,SWT.TOGGLE);
    Button check=new Button(parent,SWT.CHECK);
    check.setText("blue");
    return parent;
  }
  public static void main(String[] args){
    TestLabel lwin=new TestLabel(null);
    lwin.setBlockOnOpen(true);
    lwin.open();
    
    Display.getCurrent().dispose();
  }
}
